import axios from 'axios'
import consts from '../common/consts'

// 获取/更新，用户openinfo 基本就是验证有没有被封号
export function oauthLogin(catid, code, state) {
    return axios.post(consts.baseUrl + 'oauth_login.php?code=' + code + '&state=' + state + '&catid=' + catid)
}